<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "student_paper".
 *
 * @property int $id
 * @property int $paperid 试卷号id
 * @property int $tid 交试卷的人的id
 * @property int $state 0为为批卷，1为批卷完成
 * @property int $classid 表明是哪个班级的
 * @property string $paper_content 答题卡内容
 * @property string $create_time
 */
class StudentPaper extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'student_paper';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['paperid', 'tid', 'state', 'classid', 'paper_content'], 'required'],
            [['paperid', 'tid', 'state', 'classid'], 'integer'],
            [['paper_content'], 'string'],
            [['create_time'], 'safe'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'paperid' => 'Paperid',
            'tid' => 'Tid',
            'state' => 'State',
            'classid' => 'Classid',
            'paper_content' => 'Paper Content',
            'create_time' => 'Create Time',
        ];
    }
}
